<?php
require_once(dirname(__FILE__) . "/settings.inc.php");
require_once(dirname(__FILE__) . "/functions.php");
require_once(dirname(__FILE__) . "/XmlSerializer.class.php");

$ret = loginUser($_POST['username'], $_POST['password']);

$serializer = new XmlSerializer();
echo $serializer->serialize($ret);
?>